{
  "properties" : { },
  "id" : "9a5fcb8ccc2e4c25bee042cd8adc9bb4",
  "script" : null,
  "groupId" : "baa2d717479b4da3bd31572a3173a5d7",
  "name" : "获取路径下文件",
  "createTime" : null,
  "updateTime" : 1739463972803,
  "lock" : null,
  "createBy" : null,
  "updateBy" : "可辉",
  "path" : "getPathFiles",
  "description" : null,
  "returnType" : null,
  "mappingPath" : null,
  "parameters" : [ {
    "name" : "path",
    "value" : null,
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : "java.lang.String",
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ]
}
================================
import '@/features/getPathFiles' as getPathFiles;
import java.io.File;
import log;

File file = new File(path);
// 如果是目录就打印  目录下的文件
if(file.isDirectory()){
    var files = file.listFiles();

    for (file2 in files) {
        if(file2.isDirectory()){
            getPathFiles(file2.getPath());
        } else {
            log.info(file2.getPath());
        }
    }
       
}
